package abstract1;

public class AnimalTester {
    public static void main(String[] args) {
        Animal[] a={
          new Dog("小黑","狼狗"),
          new Cat("小花",5),
          new Dog("蛋蛋","金毛")
        };
        for (Animal k:a){
            k.introduce();
            System.out.println();
        }
    }
}
